const webpack = require('webpack')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const common = require('./webpack.common')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const merge = require('merge')
module.exports = merge(common, {
    mode: 'production',
    devtool: 'none-sources',
    plugins: [
        ...common.plugins,
        new CleanWebpackPlugin(),
        new CopyWebpackPlugin({
            patterns: ['./public']
        }),
        new webpack.DefinePlugin({
            BASE_URL: JSON.stringify('')
        })
    ]
})